<?php
/**
  * Mar 12, 2008
  *
  * Coded by: Ropu
  *
  */
include 'login.php';
//print_r($_SESSION['hacker']);
if(isset($_GET['id'])) {
  try {
    $owner = new Hacker($_GET['id']);
  } catch (Exception $e) {
	  die($e->getMessage());
  }
} else {
	try {
	  $os_viewer = new OpenSocial($_GET['owner_id'], $network);
	  $owner = $os_viewer->getHacker();
	} catch (Exception $e) {
	  die($e->getMessage());
	}
}
//$owner = new Hacker($_GET['id']);

$my_fav_apps = $_SESSION['hacker']->getFavoriteApps();

$apps = $owner->getApps();
$owner_id = $owner->getId();
$rec_apps = $owner->getFavoriteApps();
$name = $owner->getNickname();

include 'templates/temp_profile.php';


